package cn.signalpha.modules.shop.entity.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 类说明
 *
 * @author suguangjun
 */
@Getter
@AllArgsConstructor
public enum LogisticsTypeEnum {

	/**
	 * 无需发货
	 */
	NOT(0, "无需发货"),

	/**
	 * 快递
	 */
    POST(1, "快递"),

	/**
	 * 自提
	 */
    PICK(2, "自提"),

	/**
	 * 同城配送
	 */
	DELIVERY(3, "同城配送");

	final int type;
    final String name;

    public static LogisticsTypeEnum instance(int type){
        for(LogisticsTypeEnum orderPayTypeEnum : values()){
            if (orderPayTypeEnum.getType() == type) {
                return orderPayTypeEnum;
            }
        }
        return null;
    }

}
